package com.njlime.sys.service.app;

import com.njlime.sys.entities.Config;
import com.njlime.sys.entities.ConfigItem;
import com.njlime.sys.entities.UnitWxConfig;
import com.njlime.sys.repository.ConfigDao;
import com.njlime.sys.repository.ConfigItemDao;
import com.njlime.sys.repository.app.AppUnitWxConfigDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Dean on 2017-7-27.
 */
@Service
@Transactional(readOnly = true)
public class AppWxConfigService {

    @Resource
    private AppUnitWxConfigDao appUnitWxConfigDao;

    /**
     * 根据微信原始id查询公共号
     * @param wxId
     * @return
     */
    public UnitWxConfig getWxConfigByWxid(String wxId){
        return appUnitWxConfigDao.getWxConfigByWxid(wxId);
    }
}
